<div class="zs-body" data-ng-init="formInit('analysisconfig', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{registerService:0,index:0}
 	}) &&
    formInit('statisticsCateory', {
        keyField:'id',
        randomFields:['id']
    }) &&
    formInit('statisticsField', {
        keyField:'id',
        randomFields:['id']
     
    })  &&
    formInit('showField', {
        keyField:'id',
        randomFields:['id']
     
    }) && formInit('gislayerconfig', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{registerService:0,index:0}
    }) && loadData('gislayerconfig') && loadData('analysisconfig');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">地图配置</a>
            <i class="right-arr"></i>
            <a href="javascript:;">统计分析参数</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建" 
                ng-click="addTreeRow('analysisconfig') && openWindow('edit');"/>
            <input type="button" class="zs-btn orange" value="编辑" 
                ng-click="editFormSelectRow('analysisconfig')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('analysisconfig')"/>
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
            <div class="tool item" style="margin-left:6px;">
                <span class="search-warpper">
                    <ag-Combobox class="zs-input" style="height:28px;" placeholder="所属应用"
                        para="{uDictionary:true,dictionary:'p_register_service',addSpace:true,superNullItem:false}"
                        ng-model="analysisconfig.queryObject['registerService']" />
                </span>
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="图层名称" ng-model="analysisconfig.queryObject['name:like']"/>
                </span>
            </div>
            <div class="operation item">
                <a class="ope-1" ng-click="loadData('analysisconfig')"></a>
                <a class="ope-2"></a>
            </div>
            <div class="switch">
                
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <!--<input id="allCheckbox" type="checkbox"
                                            ng-click="selectAll('analysisconfig','allCheckbox');">-->
                                    </th>
                                    <th>顺序</th>
                                    <th>名称/分组</th>
                                    <th>类型/应用</th>
                                    <th>元数据</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in analysisconfig.datas">
                                    <td>
                                        <input type="checkbox"
                                            ng-click="selectRow('analysisconfig',r);"
                                            ng-model="r.selected" />
                                    </td>
                                    <td>
                                        <a ng-click="editSelectRow('analysisconfig',r);">
                                            <label ng-bind="r.index"></label>
                                        </a>
                                    </td>
                                    <td>
                                        <a ng-click="editSelectRow('analysisconfig',r);">
                                            <label ng-bind="r.name"></label>
                                            /
                                            <label ng-bind="r.groupname"></label>
                                        </a>
                                    </td>
                                    <td>
                                        <a ng-click="editSelectRow('analysisconfig',r);">
                                            <label ng-bind="r.typeName"></label>
                                            /
                                            <label ng-bind="r.registerServiceName"></label>
                                        </a>
                                    </td>
                                     <td>
                                        <a ng-click="editSelectRow('analysisconfig',r);">
                                            <label ng-bind="r.medalianame"></label>
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='analysisconfig'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit2" title="图层选择" width='560px' height='286px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                    	 <thead>
                            <tr>
                                <th>顺序</th>
                                <th>名称/分组</th>
                                <th>类型/应用</th>
                                <th>2D可用/显示</th>
                                <th>3D可用/显示</th>
                            </tr>
                        </thead>
                         <tbody>
                            <tr ng-repeat="r in gislayerconfig.datas">
                                <td>
                                    <input type="checkbox"
                                        ng-click="selectRow('gislayerconfig',r,true);"
                                        ng-model="r.selected" />
                                </td>
                                <td>
                                    <a >
                                        <label ng-bind="r.index"></label>
                                    </a>
                                </td>
                                <td>
                                    <a >
                                        <label ng-bind="r.name"></label>
                                        /
                                        <label ng-bind="r.groupname"></label>
                                    </a>
                                </td>
                                <td>
                                    <a >
                                        <label ng-bind="r.typeName"></label>
                                        /
                                        <label ng-bind="r.registerServiceName"></label>
                                    </a>
                                </td>
                                <td>
                                    <a >
                                        <label ng-bind="r.valid2D | asChineseBool"></label>
                                        /
                                        <label ng-bind="r.show2D | asChineseBool"></label>
                                    </a>
                                </td>
                                <td>
                                    <a >
                                        <label ng-bind="r.valid3D | asChineseBool"></label>
                                        /
                                        <label ng-bind="r.show3D | asChineseBool"></label>
                                    </a>
                                </td>
                            </tr>
                        </tbody>
                         <tfoot>
                         	<tr>
                         		<td colspan="4">
	                         		<div class="zs-pagination-box">
					                    <ag-Page fn='gislayerconfig'></ag-Page>
					                </div>
	                         	</td>
                         	</tr>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="选择" class="zs-btn c-red"
                                        ng-click="selectLayer();"/>
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
                                        ng-click="closeWindow('edit2')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
        
       	<!--配置编辑-s-->
        <div ag-Window id="edit" title="配置编辑"
        	style="width: 500px;height: 610px;overflow-x: hidden;overflow-y: hidden;">
	        <div class="zs-form-tab ibox" data-ng-init="iniTab('config', 'tab1', 'selected');">
	        	<form name="form" novalidate>
	        		<div class="zs-itab">
						<div class="zs-itab-title">
							<ul class="idTabs">
								<li><a ng-click="setTab('config', 'tab1');" 
									class="{{tabs['config'].tabClass['tab1']}}">图层配置</a></li>
								<li><a ng-click="setTab('config', 'tab2');" 
									class="{{tabs['config'].tabClass['tab2']}}">统计类别配置</a></li>
								<li><a ng-click="setTab('config', 'tab3');" 
									class="{{tabs['config'].tabClass['tab3']}}">统计字段配置</a></li>
								<li><a ng-click="setTab('config', 'tab4');" 
									class="{{tabs['config'].tabClass['tab4']}}">显示字段配置</a></li>
							</ul>
						</div>
					</div>

					<div ng-show="tabs['config'].tabShow['tab1']" style="height: 280px;margin:5px 10px">
						 <table width="100%">
	                        <tbody>
	                        	<tr>
	                                <td class="text" width="20%">图层名称</td>
	                                <td class="left" width="30%">
	                                    <label ng-bind="analysisconfig.editRow.name"></label>
	                                    <input type="button" name="ok" value="选择图" class="zs-btn c-red"
	                                        ng-click="openWindow('edit2')"/>
	                                </td>
	                                <td class="text" width="20%">类型</td>
	                                <td class="left" width="30%">
	
	                                <!--    <ag-Combobox class="zs-input" style="width:175px;height:28px;"
	                                            para="{uDictionary:true,dictionary:'g_layertype'}"
	                                            ng-model="analysisconfig.editRow.type"
	                                            text-Value="analysisconfig.editRow.typeName" />-->
	                                             <label ng-bind="analysisconfig.editRow.typeName"></label>
	                                </td>
	                            </tr>
	                            
	                            <tr>
	                                <td class="text" width="20%">顺序</td>
	                                <td class="left" width="30%">
	                                	<label ng-bind="analysisconfig.editRow.index"></label>
	                                </td>
	                                <td class="text" width="20%">所属应用</td>
	                                <td class="left" width="30%">
	                                   <!-- <ag-Combobox class="zs-input" style="width:175px;height:28px;"
	                                        para="{uDictionary:true,dictionary:'p_register_service'}"
	                                        ng-model="analysisconfig.editRow.registerService"
	                                        text-Value="analysisconfig.editRow.registerServiceName" />-->
	                                    <label ng-bind="analysisconfig.editRow.registerServiceName"></label>
	                                </td>
	                            </tr>
	                           
	                            <tr>
	                                <td class="text" width="20%">分组</td>
	                                <td class="left" width="30%"><!--<input type="text"
	                                    ng-model="analysisconfig.editRow.groupname"
	                                    class="zs-input" required>-->
	                                     <label ng-bind="analysisconfig.editRow.groupname"></label>
	                                </td>
	                                <td class="text" width="20%">显示集</td>
	                                <td class="left" width="30%"><!--<input type="text"
	                                    ng-model="analysisconfig.editRow.showids"
	                                    class="zs-input" required>-->
	                                
	                                 <label ng-bind="analysisconfig.editRow.showids"></label></td>
	                            </tr>
	                            <tr>
	                                <td class="text" width="20%">地址</td>
	                                <td colspan="3" class="left" width="80%" style="word-break:break-all;"><!--<input type="text"
	                                    ng-model="analysisconfig.editRow.url"
	                                    class="zs-input" required>-->
	                                
	                                 <label ng-bind="analysisconfig.editRow.url"></label></td>
	                            </tr>
	                            
	                            <tr>
	                                <td class="text" width="20%">元数据结构名称</td>
	                                <td class="left" width="30%">
	                                	<ag-Combotree class="zs-input" style="width:172px;height: 28px" 
											ng-change="onChangeMed();"
											fn='dicTree'
											para="{ uDictionary:false,
												checkbox:false,
												onlyLeafCheck:true,
												queryObject:{'directoryType:in':'3'},
												
												ssn:'metadatadirectory'}"
											ng-model="analysisconfig.editRow.medname"
											text-Value="analysisconfig.editRow.medalianame"></ag-Combotree>
	                                
	                                 </td>
	                                 
	                                <td class="text" width="20%">图层ID</td>
	                                <td class="left" width="30%">
	                                	<input type="text"
	                                    ng-model="analysisconfig.editRow.queryLayerId"
	                                    class="zs-input" required>
	                                </td>
	                            </tr>
	                        </tbody>
	                    </table>
				    </div>

					<div ng-show="tabs['config'].tabShow['tab2']" style="height: 280px;margin:5px 10px;overflow-y: auto;">
						<ag-Tree fn='c_metadata'
				    		para="{
				    			uDictionary:false,
				    			pidField:'mid',
    							valueField:'id',
    							textField:'aliasName',
    							ssn:'metadata',
    							isLoaded:true,
    							queryObject:{'mid:=':'e_elzy2011','dictionaryName:isnnull':''},
    							bindFn:'statisticsCateory',
    							bindField:'fieldid',
    							initTree:false
							}"
						ng-model="analysisconfig.editRow.statisticsCateory"/>
				    </div>

				    <div ng-show="tabs['config'].tabShow['tab3']" style="height: 280px;margin:5px 10px;overflow-y: auto;">
						<ag-Tree fn='f_metadata'
				    		para="{
				    			uDictionary:false,
				    			pidField:'mid',
    							valueField:'id',
    							textField:'aliasName',
    							ssn:'metadata',
    							isLoaded:true,
    							queryObject:{'mid:=':'e_elzy2011','dataType:in':'DECIMAL,DOUBLE,SINGLE,INT16,INT,INT64,UINT16,UINT64'},
    							bindFn:'statisticsField',
    							bindField:'fieldid',
    							initTree:false
							}"
						ng-model="analysisconfig.editRow.statisticsField"/>
				   </div>
				   	<div ng-show="tabs['config'].tabShow['tab4']" style="height: 280px;margin:5px 10px;overflow-y: auto;">
						<ag-Tree fn='s_metadata'
				    		para="{
				    			uDictionary:false,
				    			pidField:'mid',
    							valueField:'id',
    							textField:'aliasName',
    							ssn:'metadata',
    							isLoaded:true,
    							queryObject:{},
    							bindFn:'showField',
    							bindField:'fieldid',
    							initTree:false
							}"
						ng-model="analysisconfig.editRow.showField"/>
				   </div>
				   
					<div>
				    	<table width="100%">
				    		<tfoot>
				    			<tr>
				    				<td>
				    					<input type="button" name="ok" value="保存" class="zs-btn c-red"
	                                        ng-click="formValidate(form) && save('analysisconfig', analysisconfig.editRow, closeWindow('edit'))"/>
	                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
	                                        ng-click="closeWindow('edit')" />
				    				</td>
				    			</tr>
				    		</tfoot>
				    	</table>
				    </div>
				</form>
			</div>
	    </div>
	    <!--配置编辑-e-->
    </div>
</div>